package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 笔记收藏记录对象 note_favorite
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
public class NoteFavorite extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收藏ID */
    private Long favoriteId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 笔记类型（1=日常笔记 2=文档） */
    @Excel(name = "笔记类型", readConverterExp = "1=日常笔记,2=文档")
    private String noteType;

    /** 笔记ID */
    @Excel(name = "笔记ID")
    private Long noteId;

    /** 收藏夹名称 */
    @Excel(name = "收藏夹名称")
    private String folderName;

    /** 用户昵称（关联查询字段） */
    private String userNickname;

    /** 笔记标题（关联查询字段） */
    private String noteTitle;

    public void setFavoriteId(Long favoriteId) 
    {
        this.favoriteId = favoriteId;
    }

    public Long getFavoriteId() 
    {
        return favoriteId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setNoteType(String noteType) 
    {
        this.noteType = noteType;
    }

    public String getNoteType() 
    {
        return noteType;
    }
    public void setNoteId(Long noteId) 
    {
        this.noteId = noteId;
    }

    public Long getNoteId() 
    {
        return noteId;
    }
    public void setFolderName(String folderName) 
    {
        this.folderName = folderName;
    }

    public String getFolderName() 
    {
        return folderName;
    }

    public String getUserNickname() {
        return userNickname;
    }

    public void setUserNickname(String userNickname) {
        this.userNickname = userNickname;
    }

    public String getNoteTitle() {
        return noteTitle;
    }

    public void setNoteTitle(String noteTitle) {
        this.noteTitle = noteTitle;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("favoriteId", getFavoriteId())
            .append("userId", getUserId())
            .append("noteType", getNoteType())
            .append("noteId", getNoteId())
            .append("folderName", getFolderName())
            .append("createTime", getCreateTime())
            .toString();
    }
}